//
//  DWRefresherView.swift
//  DWSwift
//
//  Created by GDL on 2025/6/20.
//

import Foundation
import SwiftUI
import Refresher
struct DWRefresherView<Content:View>: View {
    @ViewBuilder let content: () -> Content
    @State private var isRefreshing = false
    let refresherAction: (_ completion: @escaping () -> ()) -> ()
    
    var body: some View {
        ScrollView {
          content()
        }.refresher(style: .system,refreshView: DWRefreshTopView.init,action: refresherAction)
    }
}
